package com.czh.dao.User;

import com.czh.pojo.User;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    User getLoginUser (Connection con ,String userCode,String userPassword) throws SQLException;
    int updatePassword (Connection con ,int id,String userPassword) throws SQLException;
    int userCount(Connection con,String userName,int userRole) throws SQLException;
    List<User> getUserList(Connection con, String userName, int userRole, int currentPageNo, int pageSize) throws SQLException;
    int userAdd(Connection connection, User user) throws Exception;
    User userCodeSeek(Connection connection,String userCode);
    User userIdSeek(Connection connection,Integer id);
    int userDelete_id(Connection connection,Integer id);
    int modify(Connection connection,User user);
}
